-
Notifications
You must be signed in to change notification settings - Fork 13
Option to check whole repository/directory #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… ToDo plugin work nicely.
MetOffice#173) * Tweaks to get VSCode's internal linters to quit whinging and make the ToDo plugin work nicely. * Touch O Tidying and ToDo commenting. * reviewer request to Update script_umdp3_checker/umdp3_conformance.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Update script_umdp3_checker/umdp3_checker_rules.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Update script_umdp3_checker/umdp3_checker_rules.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Update script_umdp3_checker/umdp3_checker_rules.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Update script_umdp3_checker/umdp3_checker_rules.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Update script_umdp3_checker/umdp3_checker_rules.py Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com> * Rreviwer requested changes that I was unable to commit via GitHub's web interface --------- Co-authored-by: Pierre Siddall <43399998+Pierre-siddall@users.noreply.github.com> Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com>
Pierre-siddall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantically speaking this mostly looks good to head onto code review for me. I just have a couple of really tiny suggestions when it comes to documentation and allocating a small amount of redundant memory. If the checkers array is a placeholder to prompt you later on feel free to leave it there, but I thought I'd flag it as I was unsure of it's intent.
| @@ -1 +1 @@ | |||
| import subprocess | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As part of this file has been coded with AI it need to have the following statement at the top in line with the AI policy
| # Some of the content of this file has been produced with the assistance of | |
| <Generative AI tool name>." | |
| import subprocess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I agree.
some AI "code completion" suggestions were accepted. Had it not made those suggestions, I would have typed the same code in manually.
If this constitutes assistance of generative AI, where do you draw the line ? linters correcting syntax ? spell checkers correcting spelling ?
I had assumed "produced with the assistance of" referred to instances where the AI was prompted to produce something specific from thin air. e.g. "create a routine to do ", whereas code completion is barely any more involved than variable name completion. More than half the time whatever it suggests has to be ignored or edited anyway, so the addition of some closing quotes or curly braces is unlikely to cause IPR concerns.
Co-authored-by: Pierre Siddall <43399998+Pierre-siddall@users.noreply.github.com>
Co-authored-by: Pierre Siddall <43399998+Pierre-siddall@users.noreply.github.com>
PR Summary
Sci/Tech Reviewer: @Pierre-siddall
Code Reviewer: @jennyhickson
A change to add a command line argument whichrather than checking with a CMS for a list of changed files, uses glob to assemble a list of all files within a direcotry (or local repository clone)
As such, adds a block for the new, logical, argument.
Creates a new subroutine to decide whether to ask a CMS or use glob.
Refactors the bit that used to output info about the branch and the files found to within the routine that decides which CMS to use before passing the CMS object back to the new routine which creates the list of files to check.
Which was a pre-requisite, now merged.
Still stacking those PRs
Code Quality Checklist
Testing
Change run, on command line of VDI, against other peoples ukca and um branches both with and without
--fullcheck. The results were as expected.Security Considerations
AI Assistance and Attribution
AI used (GitHub Copilot) as it is enabled to provide inline hinting and completion. It's responsibe for those two horrendously verbose (by even my standards) docstrings, which I accepted purely for amusment's sake.
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review